<!DOCTYPE html>
<html lang="zh-CN"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>MyHome管理系统</title>
    <link rel="stylesheet" th:href="@{loginStatic/static/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{loginStatic/static/css/admin.css}">
    <link rel="stylesheet" th:href="@{loginStatic/static/css/bootstrap-theme.min.css}">
    <link rel="stylesheet" th:href="@{loginStatic/static/css/bootstrap.min.css}">
    <script type="text/javascript" th:src="@{loginStatic/static/js/jquery-1.11.3.min.js}"></script>
    <script type="text/javascript" th:src="@{loginStatic/static/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{loginStatic/static/js/jqPaginator.js}"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img th:src="@{loginStatic/static/images/y.jpg}" class="radius-circle rotate-hover" height="50" alt=""/>后台管理中心
        </h1>
    </div>

    <div class="head-l"><a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span>
        前台首页</a> &nbsp;&nbsp;&nbsp;&nbsp;<a class="button button-little bg-red" th:href="@{/goLogin}"><span
            class="icon-power-off"></span> 退出登录</a></div>

</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2><span class="icon-user"></span>菜单列表</h2>
<!--    <ul style="display:block" class="icon-pencil-square-o">-->

<!--        <li><a href="#" target="right"><span class="icon-caret-right"></span>教师个人管理</a></li>-->

<!--        <li><a href="#" target="right"><span class="icon-caret-right"></span>班主任个人管理</a></li>-->

<!--        <li><a href="#" target="right"><span class="icon-caret-right"></span>管理员管理</a></li>-->

<!--    </ul>-->

    <shiro:hasAnyRoles name="admin,teacher,manager,student">
        <div class="dropdown" style="height: 120px">
            <button class="dropbtn"><span class="icon-caret-right"></span>销售人员管理</button>
            <div class="dropdown-content">

                <shiro:hasAnyRoles name="student">

                   <!-- <li><a href="#" target="right" class="icon-caret-right">学生信息</a></li>
                    <li><a href="#" target="right" class="icon-caret-right">学生成绩</a></li>-->
                    <li><a th:href="@{/restful/house1}" target="right" class="icon-caret-right">房源列表</a></li>
<!--                    <li><a href="#" target="right" class="icon-caret-right">课程</a></li>-->
                </shiro:hasAnyRoles>
              <!--  <shiro:hasAnyRoles name="manager">
                    <li><a href="#" target="right" class="icon-caret-right">学生管理</a></li>
                    <li><a href="#" target="right" class="icon-caret-right">学生成绩</a></li>
                </shiro:hasAnyRoles>-->

            </div>
        </div>

    </shiro:hasAnyRoles>


        <div class="dropdown" style="height: 120px">
            <button class="dropbtn"><span class="icon-caret-right"></span>经理管理</button>
            <div class="dropdown-content">

                <li><a th:href="@{/jpauser/pageUser}" target="right" class="icon-caret-right">销售人员管理</a></li>

            </div>
        </div>



</div>
</body>


<style>
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropbtn {
        background-color: #4CAF50;
        color: white;
        padding: 16px;
        font-size: 16px;
        border: none;
        cursor: pointer;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        padding: 12px 16px;
        z-index: 1;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
</style>


</div>
<script type="text/javascript">
    $(function () {
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function () {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="<%=basePath%>info.jsp" target="right" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="#">中文</a> &nbsp;&nbsp;<a href="#">英文</a></li>
</ul>
<div class="admin">
    <iframe scrolling="auto" rameborder="0" th:src="@{/info.jsp}" name="right" width="100%"
            height="100%"></iframe>
</div>

</html>